Parallelize documentation builds.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 21 Feb 2013 22:42:56 +0000 (14:42 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 21 Feb 2013 22:42:56 +0000 (14:42 -0800)
This speeds up building of documentation on multiprocessor
platforms, and is motivated by Texinfo 5.0, which is much slower.
Add a toplevel rule 'make docs' to make all the documentation.
* .bzrignore: Add .dvi, .html, .ps.
* Makefile.in (DVIS, HTMLS, INFOS, PSS, DOCS): New macros.
($(DOCS), docs, vi, html, pdf, ps): New rules.
(info-real): Depend on $(INFOS) rather than doing it sequentially.
(dvi): Depend on $(DVIS) rather than doing it sequentially.
* doc/misc/Makefile.in (html): New rule.

.bzrignore
ChangeLog
Makefile.in
doc/misc/ChangeLog
doc/misc/Makefile.in

index 5f1dc01bd8b1a508210f12810bc825e3402eb65a..7d00937f3924390b3ce88407a725e49ac01fbd57 100644 (file)
@@ -62,7 +62,10 @@ doc/**/*.tp
 doc/**/*.tps
 doc/**/*.vr
 doc/**/*.vrs
+doc/**/*.dvi
+doc/**/*.html
 doc/**/*.pdf
+doc/**/*.ps
 !doc/lispintro/cons-*.pdf
 !doc/lispintro/drawers.pdf
 !doc/lispintro/lambda-*.pdf
index dd8c6a675ca9eb4cecde0b61f1c826d8202e3b73..3aa03eb2cd362938bd162dfb80599f28d2d187fd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Parallelize documentation builds.
+       This speeds up building of documentation on multiprocessor
+       platforms, and is motivated by Texinfo 5.0, which is much slower.
+       Add a toplevel rule 'make docs' to make all the documentation.
+       * .bzrignore: Add .dvi, .html, .ps.
+       * Makefile.in (DVIS, HTMLS, INFOS, PSS, DOCS): New macros.
+       ($(DOCS), docs, vi, html, pdf, ps): New rules.
+       (info-real): Depend on $(INFOS) rather than doing it sequentially.
+       (dvi): Depend on $(DVIS) rather than doing it sequentially.
+
 2013-02-18  Aidan Gauland  <aidalgol@no8wireless.co.nz>
 
        * doc/misc/eshell.texi: Added documentation for Eshell insert
index a2de4f3b164f6a023cd0f15c4b6b65dfa65382a6..42b900401f769d0da52ed760c5f889e64b4bdab9 100644 (file)
@@ -54,6 +54,9 @@
 # make bootstrap
 #      Removes all the compiled files to force a new bootstrap from a
 #      clean slate, and then build in the normal way.
+#
+# make docs
+#      Make Emacs documentation files from their sources; requires makeinfo.
 
 SHELL = /bin/sh
 
@@ -859,13 +862,25 @@ check:
 dist:
        cd ${srcdir}; ./make-dist
 
+DVIS  = lispref-dvi  lispintro-dvi  emacs-dvi  misc-dvi
+HTMLS = lispref-html lispintro-html emacs-html misc-html
+INFOS = lispref-info lispintro-info emacs-info misc-info
+PDFS  = lispref-pdf  lispintro-pdf  emacs-pdf  misc-pdf
+PSS   = lispref-ps   lispintro-ps   emacs-ps # no misc-ps
+
+DOCS = $(DVIS) $(HTMLS) $(INFOS) $(PDFS) $(PSS)
+$(DOCS):
+       t=$@; IFS=-; set $$t; IFS=; cd doc/$$1 && $(MAKE) $(MFLAGS) $$2
+
+.PHONY: $(DOCS) docs pdf ps
 .PHONY: info dvi dist check html info-real force-info check-info-dir
 
-info-real:
-       (cd doc/emacs; $(MAKE) $(MFLAGS) info)
-       (cd doc/misc; $(MAKE) $(MFLAGS) info)
-       (cd doc/lispref; $(MAKE) $(MFLAGS) info)
-       (cd doc/lispintro; $(MAKE) $(MFLAGS) info)
+docs: $(DOCS)
+dvi: $(DVIS)
+html: $(HTMLS)
+info-real: $(INFOS)
+pdf: $(PDFS)
+ps: $(PSS)
 
 force-info:
 # Note that man/Makefile knows how to put the info files in $(srcdir),
@@ -904,12 +919,6 @@ check-info-dir: info
        fi ; \
        echo "info/dir is OK"
 
-dvi:
-       (cd doc/emacs; $(MAKE) $(MFLAGS) dvi)
-       (cd doc/misc; $(MAKE) $(MFLAGS) dvi)
-       (cd doc/lispref; $(MAKE) $(MFLAGS) elisp.dvi)
-       (cd doc/lispintro; $(MAKE) $(MFLAGS) emacs-lisp-intro.dvi)
-
 #### Bootstrapping.
 
 ### This first cleans the lisp subdirectory, removing all compiled
index a19cff4ffb4e1277f5be293d66e972b56e6bb4e8..7725ce281321d2bb10c3891b7cf0163384b97985 100644 (file)
@@ -1,3 +1,7 @@
+2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * Makefile.in (html): New rule.
+
 2013-02-20  Michael Albinus  <michael.albinus@gmx.de>
 
        * tramp.texi (Android shell setup): Improve.  Reported by Thierry
index 3dac35aafee18fe033d6c5cfd4afdc73e10cd51a..add1b42a545de77bde6bd50e579d4484e7f513e0 100644 (file)
@@ -192,6 +192,8 @@ webhack: clean
 
 dvi: $(DVI_TARGETS)
 
+html: $(HTML_TARGETS)
+
 pdf: $(PDF_TARGETS)
 
 # Note that all the Info targets build the Info files in srcdir.